<template>
	<view class="box-detail">
		<view class="item-index-top">
			<view class="item-top-text">用地方式</view>
		</view>
		<view class="box-detail-content ">
			<view class="box-detail-content-item">
				<view class="row-title">用地方式</view>
				<view class="row-content">{{pageData.yongdifangshi||"无"}}</view>
			</view>
			<view class="box-detail-content-item">
				<view class="row-title">容积率</view>
				<view class="row-content">{{pageData.model.SITE_RATIO||""||"无"}}</view>
			</view>
			<view class="box-detail-content-item">
				<view class="row-title">用地面积</view>
				<view class="row-content">{{pageData.model.SITE_AREA||""||"无"}} 亩</view>
			</view>
			<view class="box-detail-content-item">
				<view class="row-title">价格</view>
				<view class="row-content">{{pageData.model.SITE_PRICE||""||"无"}} 元/亩</view>
			</view>
			<view class="box-detail-content-item">
				<view class="row-title">选址地址</view>
				<view class="row-content">{{pageData.model.SITE_ADDRESS||""||"无"}}</view>
			</view>
			<view class="box-detail-content-item">
				<view class="row-title">地块描述</view>
				<view class="row-content">{{pageData.model.SITE_DESCR||""||"无"}}</view>
			</view>
			<!-- <view class="box-detail-content-item">
				<view class="row-title">地图坐标</view>
				<view class="row-content">查看</view>
			</view> -->
		</view>
		<view class="box-attach">
			<view class="box-attach-title">附件</view>
			<view class="box-attach-row" v-if="!pageData.fileList['PPP_T_BUS_PROJ.XMDKFJ'].fileList.length">
				<view class="box-attach-name">无</view>
			</view>
			<view class="box-attach-row" v-else v-for="item,index in pageData.fileList['PPP_T_BUS_PROJ.XMDKFJ'].fileList" :key="index" @tap="openFile" :data-url="item.url">
				<view class="box-attach-icon">
					<image src="../../../../static/images/icon_enclosure.png" mode=""></image>
				</view>
				<view class="box-attach-name">{{ item.fileShowName||"无"}}</view>
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return{
				code:'',
				xllyData:{},
			}
		},
		props: {
			pageData: {
				type: Object,
				default(){
					return {}
				}
			}
		},
		methods:{
			//下载
			openFile(e) {
				const url = e.currentTarget.dataset.url
				this.$util.openFile(url)
			},
		}
	}
</script>

<style lang="scss" scoped>
	.wrap{
		padding-bottom: 60rpx;
	}
	page{
		padding-bottom: 20rpx;
	}
	.box-detail {
		background-color: #ffffff;
		border-radius: 20rpx;
		margin: 20rpx;
		padding: 26rpx 30rpx 50rpx 30rpx;
	}
	
	.item-top{
		display: flex;
		justify-content: space-between;
		.setion-left{
			display: flex;
			flex-direction: column;
			.left-text-top{
				font-size: 30rpx;
				font-weight: 600;
				color: #414a5d;
			}
			.left-text-bot{
				margin-top: 22rpx;
				font-size: 26rpx;
				color: #7f7f7f;
			}
		}
		.setion-right{
			display: flex;
			flex-direction: column;
			align-items: flex-end;
			.right-text-top{
				height: 30rpx;
				line-height: 30rpx;
				font-size: 26rpx;
				font-weight: normal;
				color: #9a9a9a;
			}
			.right-text-bot{
				margin-top: 22rpx;
				font-size: 28rpx;
				font-weight: normal;
				color: #999999;
			}
		}
	}
	.box-detail-header {
		display: flex;
		justify-content: space-between;
		margin-bottom: 8rpx;
	
		.name {
			font-size: 30rpx;
			color: #414a5d;
			font-weight: bold;
		}
	
		.date {
			font-size: 26rpx;
			color: #9a9a9a;
		}
	}
	
	.box-net {
		font-size: 26rpx;
		color: #0099cc;
	}
	
	.box-detail-content {
		margin-top: 24rpx;
		padding: 0 10rpx;
	
		&.border {
			border-bottom: 1px solid #e8f0f2;
		}
	}
	
	.box-detail-content-item {
		display: flex;
		flex-direction: row;
		// justify-content: flex-start;
		// justify-content: space-between;
		margin-bottom: 20rpx;
	
		.row-title {
			width: 170rpx;
			font-size: 26rpx;
			color: #9a9a9a;
			text-align: left;
			flex-shrink: 0;
			margin-right: 10rpx;
	
			&.mag {
				margin-left: 18rpx;
			}
		}
	
		.row-content {
			font-size: 26rpx;
			color: #414a5d;
			word-wrap: break-word;
			word-break: break-all;
			flex: 1;
			text-align: left;
	
			&.mag {
				margin-right: 18rpx;
			}
		}
	}
	
	.bar-contact {
		background-color: #0099cc;
		border-radius: 10px;
		height: 40rpx;
		line-height: 40rpx;
		padding-left: 18rpx;
		color: #FFFFFF;
		font-size: 24rpx;
		
	}
	.box-attach{
		margin-top: 20rpx;
		padding: 20rpx 10rpx 0 10rpx;
		border-top: 1px solid #e8f0f2;
	
		.box-attach-title{
			width: 170rpx;
			font-size: 26rpx;
			color: #9a9a9a;
			text-align: left;
			flex-shrink: 0;
			margin-right: 10rpx;
		}
		.box-attach-row {
			display: flex;
			justify-content: flex-start;
			// align-items: center;
			// padding: 0 18rpx;
			// height: 38rpx;
			margin: 10rpx 0;
			.box-attach-icon {
				width: 34rpx;
				height:40rpx;
				margin-right: 20rpx;
				// background-image: url(../../../../static/images/icon_enclosure.png);
				// box-sizing: 34rpx 40rpx;
				// background-repeat: no-repeat;
				image{
					width: 100%;
					height: 100%;
				}
			}
			.box-attach-name {
				word-wrap: break-word;
				word-break: break-all;
				white-space: pre-line;
				flex: 1;
				font-size: 26rpx;
				color: #0099cc;
			}
		}
	}
	.fixed-action-bar{
		width: 100%;
		display: flex;
		height: 70rpx;
		align-items: center;
		background: #fff;
		position: fixed;
		bottom: 0;
		left: 0;
		z-index: 999;
		.item{
			width: 50%;
			display: flex;
			justify-content: center;
			align-items: center;
			
		}
		.icon{
			width: 30rpx;
		}
		.btn-box{
			width: 90rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			height: 70rpx;
		}
		.text-edit{
			font-size: 24rpx;
			color: #0099cc;
			line-height: 70rpx;
		}
		.text-delete{
			font-size: 24rpx;
			color: #cc3357;
			line-height: 70rpx;
		}
	}
	.item-index-top{
		// width: 650rpx;
		height: 40rpx;
		// margin: 20rpx 20rpx 18rpx 20rpx;
		background-color: #0099cc;
		border-radius: 10rpx;
		.item-top-text{
			font-family: AlibabaPuHuiTi-Regular;
			padding-left: 20rpx;
			font-size: 26rpx;
			font-weight: normal;
			line-height: 40rpx;
			letter-spacing: 0px;
			color: #ffffff;
		}
	}
</style>
